package com.example.demo.bean;

import lombok.Data;

/**
 * @ClassName Menu|ztree菜单实体类
 * @Description
 * @Author 51
 * @Date 2020年3月17日 下午12:54:13
 */
public class Menu {

	private Integer id;
	private Integer pId;
	private String name;
	private String url;
	private String icon;

	/**
	 * @param id
	 * @param pId
	 * @param name
	 * @param url
	 * @param icon
	 */
	public Menu(Integer id, Integer pId, String name, String url, String icon) {
		super();
		this.id = id;
		this.pId = pId;
		this.name = name;
		this.url = url;
		this.icon = icon;
	}

	/**
	 * 
	 */
	public Menu() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "Menu [id=" + id + ", pId=" + pId + ", name=" + name + ", url=" + url + ", icon=" + icon + "]";
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the pId
	 */
	public Integer getpId() {
		return pId;
	}

	/**
	 * @param pId the pId to set
	 */
	public void setpId(Integer pId) {
		this.pId = pId;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the url
	 */
	public String getUrl() {
		return url;
	}

	/**
	 * @param url the url to set
	 */
	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * @return the icon
	 */
	public String getIcon() {
		return icon;
	}

	/**
	 * @param icon the icon to set
	 */
	public void setIcon(String icon) {
		this.icon = icon;
	}

}
